package com.hnevc.caoliuye;

/**
 * System类的使用
 * currentTimeMillis() 获取当前系统的时间
 * arrayCopy() 拷贝数组
 *
 */
public class Example01 {
    public static void main(String[] args) {
        //获取当前系统时间戳
        long nowTime = System.currentTimeMillis();
        System.out.println(nowTime);

        int[] fromArray = {1,3,9,7,5,4,0,8};
        int[] toArray = {100,101,99,52,12,190};
        System.arraycopy(fromArray,3,toArray,4,2);
        for(int i = 0;i<toArray.length;i++){
            System.out.println(toArray[i]);
        }
    }
}
